Skip to main content

FlowProfession

Represents a workflow profession step in the system, encapsulating properties and methods for managing profession-related logic.

Properties

NameDescription
CaptionThe caption dictionary representing localized captions for the flow object.
IdThe unique identifier of the profession.
ValueTypeIndicates the type of the profession, such as constant or initiator.
ValueOptionIsChangedSpecifies if the profession's value option has been modified.
KeyA unique identifier for the workflow step.
CodeThe code associated with the profession, typically representing a unique value.
NameName for the workflow step.
DescriptionA descriptive name or details about the profession.
WorkflowCodeInstanceThe workflow code instance associated with the flow object.
CachedDMObjectsThe cached document management objects related to the flow object.
TypeCodeThe type code associated with the flow object.

Constructors

NameDescription
FlowProfession(name, workflowData, workflowCodeInstance)Constructor for the FlowProfession class. Initializes a new instance of the FlowProfession class.
FlowProfession(name, workflowData, workflowCodeInstance)Initializes a new instance of the FlowProfession class with a name, workflow data, and workflow code instance.

Methods

NameDescription
SetFromOther(sourceProfession)Sets the current profession based on another FlowProfession instance.
SetConstantProfession(id, code, description)Assigns a constant profession using its ID, code, and description.
SetConstantProfession(id)Assigns a constant profession to the workflow step using a profession ID.
SetFromVariable(sourceVariable)Sets the current profession using data from a Variable object.
SetFromFlowInitiator()Sets the profession based on the flow initiator.
SetFromPosition(sourcePosition)Sets the current profession based on a FlowPosition instance.
Initialize()Initializes the profession step with default settings.
ToLiquid()Converts the profession data into a format compatible with Liquid templates.
SetConstantProfession(profession)Assigns a constant profession to the workflow step using a profession object.

Events

NameDescription
OnAfterExecution(sender, args)Occurs after the execution of the workflow step.
OnBeforeExecution(sender, args)Occurs before the execution of the workflow step.